home *** CD-ROM | disk | FTP | other *** search
/ Monster Media 1996 #15 / Monster Media Number 15 (Monster Media)(July 1996).ISO / utils / fdate93a.zip / FDATE_NT.DOC < prev    next >
Text File  |  1996-04-19  |  1KB  |  40 lines

  1. This material also appears in FDATE.DOC.
  2. I've duplicated it here in the hopes that it will
  3. catch the eye of potential NT users of Fdate.
  4.  
  5.  
  6. /V WHEN RUNNING UNDER WINDOWS NT
  7. =======================================
  8.  
  9. Early in 1996, reports began trickling in of users having difficulty
  10. with Fdate's /V feature (setting the value of an environment variable)
  11. when running under Windows NT.  To make a long story short, Fdate's /V
  12. feature doesn't work under Windows NT.  I am investigating possible
  13. solutions to this problem, but cannot say when, or if, Fdate's /V
  14. feature will ever work under NT.
  15.  
  16. This does not mean, however, that Fdate can't be used with NT.  What it
  17. means is that, when running Fdate under NT, we have to fall back on a
  18. more basic method of setting an environment variable.  This involves
  19. creating a temporary batch file that sets the variable, then running and
  20. deleting the batch file.  It's primitive, but it works.
  21.  
  22.  
  23. CALL A BATCH FILE
  24. =================
  25.  
  26. The most basic way to put FDATE's output into an environment variable,
  27. is to:
  28.   *  use the /P (prefix string) feature to create a DOS "SET" statement,
  29.   *  redirect the output to a batch file, and then
  30.   *  CALL the batch file.
  31.  
  32.  EXAMPLE:
  33.        FDATE /Ff /At /Occyymmdd /P"@SET FDATE=" >JUNKTEMP.BAT
  34.        call JUNKTEMP.BAT
  35.        del  JUNKTEMP.BAT
  36.  
  37. In this example, the result will be that the FDATE environment variable
  38. is set to today's date, in ccyymmdd format.
  39.  
  40.